package com.lxj.service.impl;

import com.lxj.domain.Teacher;
import com.lxj.mapper.TeacherMapper;
import com.lxj.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherServiceImpl implements TeacherService {
    @Autowired
    private TeacherMapper teacherMapper;
    @Override
    public List<Teacher> selectAll(Teacher teacher) {
        return teacherMapper.selectAll(teacher);
    }

    @Override
    public int delete(Integer[] id) {
        return teacherMapper.delete(id);
    }

    @Override
    public int getNumber() {
        return teacherMapper.getNumber();
    }

    @Override
    public List<Teacher> findAll(Teacher teacher) {
        return teacherMapper.findAll(teacher);
    }

    @Override
    public int getCount() {
        return teacherMapper.getCount();
    }

    @Override
    public int deleteClassTeacher(Integer[] id) {
        return teacherMapper.deleteClassTeacher(id);
    }
}
